[
  {
    "id": "APISIX-Service",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "1",
          "type": "Widget",
          "widget": {
            "title": "HTTP Request Trend (requests per second)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_requests,sum(service_instance_id))"
          ]
        },
        {
          "x": 6,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "2",
          "type": "Widget",
          "widget": {
            "title": "HTTP Status Trend (requests per second)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_status_matched,sum(code))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 12,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "3",
          "type": "Widget",
          "widget": {
            "title": "HTTP Latency (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_latency_matched,avg(type,p))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 18,
          "y": 0,
          "w": 6,
          "h": 13,
          "i": "4",
          "type": "Widget",
          "widget": {
            "title": "HTTP Bandwidth (KB)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_bandwidth_matched/1024,sum(type))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 0,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "5",
          "type": "Widget",
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_connections,sum(state))"
          ],
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "widget": {
            "title": "HTTP Connections"
          },
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 6,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "6",
          "type": "Widget",
          "widget": {
            "title": "HTTP Status Trend of non-matched requests (requests per second)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_status_unmatched,sum(code))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 12,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "7",
          "type": "Widget",
          "widget": {
            "title": "HTTP Latency of non-matched requests (ms)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_http_latency_unmatched,avg(type,p))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 18,
          "y": 13,
          "w": 6,
          "h": 13,
          "i": "8",
          "type": "Widget",
          "widget": {
            "title": "HTTP Bandwidth of non-matched requests (KB)"
          },
          "graph": {
            "type": "Line",
            "step": false,
            "smooth": false,
            "showSymbol": true,
            "showXAxis": true,
            "showYAxis": true
          },
          "expressions": [
            "aggregate_labels(meter_apisix_sv_bandwidth_unmatched/1024,sum(type))"
          ],
          "associate": [
            {
              "widgetId": "1"
            },
            {
              "widgetId": "2"
            },
            {
              "widgetId": "3"
            },
            {
              "widgetId": "4"
            },
            {
              "widgetId": "6"
            },
            {
              "widgetId": "7"
            },
            {
              "widgetId": "8"
            }
          ]
        },
        {
          "x": 0,
          "y": 26,
          "w": 12,
          "h": 26,
          "i": "12",
          "type": "Widget",
          "graph": {
            "type": "InstanceList",
            "dashboardName": "APISIX-Instance",
            "fontSize": 12,
            "showXAxis": false,
            "showYAxis": false,
            "showGroup": true
          }
        },
        {
          "x": 12,
          "y": 26,
          "w": 12,
          "h": 26,
          "i": "13",
          "type": "Widget",
          "graph": {
            "type": "EndpointList",
            "dashboardName": "APISIX-Endpoint",
            "fontSize": 12,
            "showXAxis": false,
            "showYAxis": false,
            "showGroup": true
          }
        }
      ],
      "layer": "APISIX",
      "entity": "Service",
      "name": "APISIX-Service",
      "isRoot": false,
      "isDefault": true,
      "expressions": [
        "avg(aggregate_labels(meter_apisix_sv_http_status_matched{code='200'},sum(code)))",
        "avg(aggregate_labels(meter_apisix_sv_http_status_matched{code='304'},sum(code)))",
        "avg(aggregate_labels(meter_apisix_sv_http_status_matched{code='404'},sum(code)))",
        "avg(aggregate_labels(meter_apisix_sv_http_status_matched{code='499'},sum(code)))",
        "avg(aggregate_labels(meter_apisix_sv_http_status_matched{code='503'},sum(code)))"
      ],
      "expressionsConfig": [
        {
          "unit": "req / s",
          "label": "HTTP Status 200"
        },
        {
          "unit": "req / s",
          "label": "HTTP Status 304"
        },
        {
          "unit": "req / s",
          "label": "HTTP Status 404"
        },
        {
          "unit": "req / s",
          "label": "HTTP Status 499"
        },
        {
          "unit": "req / s",
          "label": "HTTP Status 503"
        }
      ]
    }
  }
]
